<%-- 
    Document   : login
    Created on : 19-dic-2012, 15.28.16
    Author     : Alex
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
        <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> 
    </head>
    <body>
            <div class="hero-unit">
    <h1>We Buy</h1>
    <img src="webuy_img/4.jpg" width="200" height="100"/>
    </br>
    
    <p>
        <%session = request.getSession(false);
          session.invalidate();
        %>
    <p>
    <form class="form-inline" method="post" action="Autenticazione">
    <input name="username" type="text" class="input-small" placeholder="Username">
    <input name="password" type="password" class="input-small" placeholder="Password">
    <button type="submit" class="btn btn-primary">Sign in</button>
        <h5 class="text-info">Da dove sei connesso?</h5>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>
UniTN
</label>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Altre Reti
</label>
    </form>
                 
    
    
    </div>
        
        <div class="hero-unit" >
            <h3 class="text-info"> Registrazione </h3>
            <h5 class="text-warning"> Se non sei registrato, fallo qui! </h5>
   <form action="Registrazione" method="post">
    <input name="username" class="span3" type="text" placeholder="Username"> </br>
    <input name="nome" class="span3" type="text" placeholder="Nome" onBlur="isALFABETIK(this)"> </br>
    <input name="cognome" class="span3" type="text" placeholder="Cognome" onBlur="isALFABETIK(this)"> </br>
    <input name="indirizzo" class="span3" type="text" placeholder="Indirizzo" onBlur="isALFABETIK(this)"> </br>
    <input name="password" class="span3" type="password" placeholder="Password"> </br>
    <input name="cpassword" class="span3" type="password" placeholder="Conferma Password"> </br>
    <input name="email" class="span3" type="text" placeholder="Email"> </br>
    <input name="cemail" class="span3" type="text" placeholder="Conferma Email"> </br>
    <button type="submit" class="btn btn-large btn-primary">Registrazione</button>
   </form>
        </div>
        
        <script language=Javascript>
function isALFABETIK(obj) {

if (!isNaN(obj.value)){
  alert('Nel campo è possibile immettere solo caratteri alfabetici!');
  obj.value="";
  obj.focus();}}

</script>
    </body>
</html>
